//部门员工树展示
var staffData = [
    {
        text: '兴业法催组',
        id:'1',
        nodes: [
            {
                text: '田德龙',
                id:'123'
            },
            {
                text: '邓智聪',
                id:'456'
            }
        ]
    }
];
$('.staff-tree').treeview({
    expandIcon: 'fa fa-plus',//展开图标
    collapseIcon: 'fa fa-minus',//合并图标
    nodeIcon: 'fa fa-user-o',//无节点图标
    data: staffData
});
$('.staff-tree').on('nodeSelected', function(event, data) {
    $('.staff-id').val(data.id);
    $('.staff-name').text(data.text);
});
$('.staff-all').click(function(){
    $('.staff-id').val();
    $('.staff-name').text('部门/员工');
})